<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改</title>
<%@include file="/view/common/js-css.jsp" %>
</head>
<body>
	<div id="frameWrapper" class="frameWrapper">
	 <div class="titlebar">
		<a class="btn btn-getionfo" href="javascript:;"><i class="fa fa-upload"></i>&nbsp;&nbsp;导入Excel</a> <p>当前位置：学生管理<span>/</span>信息维护<span>/</span>修改</p>
	 </div>
	 
	<div class="formbar">
		<form name="addGrade" action="TeacherServlet?command=update&studentId=${student.student_id }" method="post">
		    <div class="form_control">
		    <span class="input-name">学号：</span>
		    <input class="required " value="${student.student_sno }" type="text" name="studentNum" data-tip="请输入学号" data-valid="isNonEmpty||onlyInt" data-error="学号不能为空||学号格式不正确" placeholder="学号">
		    </div>
		    <div class="form_control form_control">
		     <span class="input-name">姓名：</span>
		      <input class="required" value="${student.student_name }" type="text" data-tip="请输入姓名" data-valid="isNonEmpty" data-error="姓名不能为空" name="studentName">
		    </div>
		    
		     <div   id="form_control_sex" class="form_control noshadow ">
		     <span class="input-name">性别：</span>
		       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		       <c:if test="${student.student_sex == '男' }">
			       <input id="man" class="required" value="男" type="radio" data-tip="请输入性别" data-valid="isNonEmpty" data-error="性别不能为空" name="sex" checked="checked">
			     <label for="man">男</label> 
			       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			       <input id="woman" class="required" value="女" type="radio" data-tip="请输入性别" data-valid="isNonEmpty" data-error="性别不能为空" name="sex">
			       <label for="woman">女</label>
		       </c:if> 
		       
		       <c:if test="${student.student_sex == '女' }">
			     <input id="man" class="required" value="男" type="radio" data-tip="请输入性别" data-valid="isNonEmpty" data-error="性别不能为空" name="sex" >
			     <label for="man">男</label> 
			      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			     <input id="woman" class="required" value="女" type="radio" data-tip="请输入性别" data-valid="isNonEmpty" data-error="性别不能为空" name="sex" checked="checked">
			     <label for="woman">女</label>
		       </c:if> 
		    </div>
		    
	  		<div class="form_control">
		    <span class="input-name">班级：</span>
		      <select class="select required" data-valid="isNonEmpty" data-error="班级必填" name="studentClass">
				    	<option value="">————————请选择————————</option>
						<c:forEach items="${gradeList }" var="grade">
				    		<option value="${grade.grade_id }" ${grade.grade_id==student.grade_id?"selected='selected'":"" }>${grade.grade_name }</option>
				    	</c:forEach>
			  </select>
		    </div>
		     <div class="submit">
     			<input type="submit" value="立即提交" />
			</div>
		</form>
	</div>
</div>
</body>
</html>